Pluggable Aspect Instantiation Models

نویسندگان

  • David H. Lorenz
  • Victor Trakhtenberg
چکیده

An aspect encapsulates not only a crosscutting behavior, but also a crosscutting state. When aspects are stateful, there is a need to specify and control their instantiation. Unfortunately, aspect instantiation is a hard-wired feature in AspectJ. This feature cannot be customized by the application programmer. Speci cally, there are six pre-de ned instantiation models to choose from, each designated by a keyword: issingleton, perthis, pertarget, perc ow, perc owbelow, pertypewithin. In this work, we introduce a new language mechanism and keyword `perscope' that lets third-parties de ne custom aspect instantiation models. This new keyword replaces the six existing keywords in AspectJ, and may eliminate the need for introducing future ones.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Aspect-Oriented Change Realization Based on Multi-Paradigm Design with Feature Modeling

It has been shown earlier that aspect-oriented change realization based on a two-level change type framework can be employed to deal with changes so they can be realized in a modular, pluggable, and reusable way. In this paper, this idea is extended towards enabling direct change manipulation using multiparadigm design with feature modeling. For this, generally applicable change types are consi...

متن کامل

A Pluggable Architecture for Building User Models From Massive Datasets

In many situations, it is common that a large single source of data serves as input to multiple application areas, each of which may use a different user model. It is often the case that each user model is assembled using a different process, however, in general, it is more efficient to have a single architecture for building different user models for different application areas. We propose an ...

متن کامل

Mapping Aspect-Oriented Models to Aspect-Oriented Code

When aspect-oriented modeling techniques are used in the context of Model-Driven Engineering, a possible way of obtaining an executable from an aspect-oriented model is to map it to code written in an aspect-oriented programming language. This paper presents important challenges that a modeler has to face when mapping aspect-oriented models to an aspect-oriented programming language: mapping st...

متن کامل

Improving Alignment of Crosscutting Features with Code in Product Line Engineering

Feature models used in product line engineering often include features that crosscut other features. These features cannot be cleanly modularized using object-oriented techniques and are the source of scattering and tangling in implementation modules. This significantly complicates the traceability of features during the development and maintenance of a product line and during the instantiation...

متن کامل

Aspect-oriented Concrete Syntax Definition for Deep Modeling Languages

Multi-level modeling tools provide inherent support for modeling domain scenarios with multiple classification levels. However, as the success of domain-specific modeling tools illustrates users increasingly expect to be able to visualize models using domain-specific languages. It is relatively straightforward to support this using traditional “two-level” modeling technologies, but many of the ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2011